<?php

use think\migration\Seeder;

class ShopGoodsSpecsSeeder extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        $data = [
            'title' => '服装上衣',
            'param' => '[{"name":"颜色","value":"红色 黑色 白色 黄色 蓝色 紫色 黑红色 军绿色"},{"name":"尺寸","value":"S M L XL XXL XXXL 4XL 5XL"},{"name":"年份","value":"2018 2019"}]',
        ];
        $this->table('shop_goods_specs')->insert($data)->save();
    }
}